package com.example.bean;

public class Bean {
    private String name;

    public Bean() {
        System.out.println("bean 无参构造");
    }

    public Bean(String name) {
        System.out.println("bean 有参构造");
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
